/**
 * 
 */
package org.cuatrovientos.JavaKart;

/**
 * 
 */

/**
 * Class to generate circuits
 * @author mikel_luquin
 *
 */
public class Circuito {
        
        private String name;
        private int km;
        private int positions;
        
        /**
         * Default constructor
         * @param name
         * @param positions
         * @param km
         */
        public Circuito(String name, int positions, int km) {
                this.name = name;
                this.positions = positions;
                this.km = km;
        }

        
        
        /**
         * @return the name
         */
        public String getName() {
                return name;
        }

        /**
         * @param name the name to set
         */
        public void setName(String name) {
                this.name = name;
        }


        /**
         * @return the km
         */
        public int getKm() {
                return km;
        }


        /**
         * @param km the km to set
         */
        public void setKm(int km) {
                this.km = km;
        }


        /**
         * @return the positions
         */
        public int getPositions() {
                return positions;
        }


        /**
         * @param positions the positions to set
         */
        public void setPositions(int positions) {
                this.positions = positions;
        }


        /* (non-Javadoc)
         * @see java.lang.Object#toString()
         */
        @Override
        public String toString() {
                return "Circuit [name=" + name + ", km=" + km + ", positions="
                                + positions + "]";
        }

}